package com.lcf.system.vo;

import com.lcf.framework.annotation.DictFile;
import com.lcf.framework.annotation.DictTable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

/**
 * 商品(Goods)表实体类
 *
 * @author lcf
 * @since 2025-04-24 21:14:31
 */
@Data
@NoArgsConstructor
public class GoodsRelationVO {
    //id
    @Schema(description = "id")
    @DictTable(tableName = "goods",
            primaryKey = "id",
            fields = {"goods_name","goods_img","goods_price"},
            nameField = {"goodsName","goodsImg","goodsPrice"})
    private Long id;
    //商品名称
    @Schema(description = "商品名称")
    private String goodsName;
    //商品图片
    @DictFile
    @Schema(description = "商品图片")
    private String goodsImg;
    //商品价格
    @Schema(description = "商品价格")
    private BigDecimal goodsPrice;
}

